<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Badugi: server.ClientService Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Badugi
   &#160;<span id="projectnumber">1.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classserver_1_1_client_service.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classserver_1_1_client_service-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">server.ClientService Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for server.ClientService:</div>
<div class="dyncontent">
<div class="center"><img src="classserver_1_1_client_service__inherit__graph.png" border="0" usemap="#server_8_client_service_inherit__map" alt="Inheritance graph"/></div>
<map name="server_8_client_service_inherit__map" id="server_8_client_service_inherit__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for server.ClientService:</div>
<div class="dyncontent">
<div class="center"><img src="classserver_1_1_client_service__coll__graph.png" border="0" usemap="#server_8_client_service_coll__map" alt="Collaboration graph"/></div>
<map name="server_8_client_service_coll__map" id="server_8_client_service_coll__map">
<area shape="rect" id="node11" href="classserver_1_1_game.html" title="server.Game" alt="" coords="559,134,654,161"/><area shape="rect" id="node4" href="classtools_1_1_player.html" title="tools.Player" alt="" coords="413,261,504,287"/><area shape="rect" id="node14" href="classtools_1_1_game_state.html" title="tools.GameState" alt="" coords="269,171,389,198"/><area shape="rect" id="node7" href="classserver_1_1_server_badugi.html" title="server.ServerBadugi" alt="" coords="845,146,981,173"/><area shape="rect" id="node12" href="classtools_1_1_deck.html" title="tools.Deck" alt="" coords="287,94,371,121"/><area shape="rect" id="node16" href="enumtools_1_1_game_states.html" title="tools.GameStates" alt="" coords="25,185,152,211"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a05d13ec76832219c462109ca17fc8cfc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1_client_service.html#a05d13ec76832219c462109ca17fc8cfc">run</a> ()</td></tr>
<tr class="separator:a05d13ec76832219c462109ca17fc8cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f87179f8b8326a86029d963b72230a7"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classserver_1_1_client_service.html#a8f87179f8b8326a86029d963b72230a7">equals</a> (Object o)</td></tr>
<tr class="separator:a8f87179f8b8326a86029d963b72230a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Obsługa połączenia jednego klienta - osobny wątek </p><dl class="section author"><dt>Author</dt><dd>Mateusz Domagała </dd></dl>

<p>Definition at line <a class="el" href="_client_service_8java_source.html#l00014">14</a> of file <a class="el" href="_client_service_8java_source.html">ClientService.java</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8f87179f8b8326a86029d963b72230a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean server.ClientService.equals </td>
          <td>(</td>
          <td class="paramtype">Object&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_client_service_8java_source.html#l00212">212</a> of file <a class="el" href="_client_service_8java_source.html">ClientService.java</a>.</p>

</div>
</div>
<a class="anchor" id="a05d13ec76832219c462109ca17fc8cfc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void server.ClientService.run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Przesłonięcie metody <a class="el" href="classserver_1_1_client_service.html#a05d13ec76832219c462109ca17fc8cfc">run()</a> z klasy/interfejsu Runnable Wykonywana przez cały czas trwania połączenia. </p>
<p>czekanie na poczatek konwersacji - sprawdzenie czy klient jest prawidlowy</p>
<p>Jesli nie ma miejsca to pozegnanie, w przeciwnym przypadku zwiekszenie liczby graczy, utworzenie nowego gracza</p>
<p>Główna pętla wątku obsługującego klienta</p>
<p>po wyjściu z pętli zamknięcie strumieni i gniazda klienta </p>

<p>Definition at line <a class="el" href="_client_service_8java_source.html#l00149">149</a> of file <a class="el" href="_client_service_8java_source.html">ClientService.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classserver_1_1_client_service_a05d13ec76832219c462109ca17fc8cfc_cgraph.png" border="0" usemap="#classserver_1_1_client_service_a05d13ec76832219c462109ca17fc8cfc_cgraph" alt=""/></div>
<map name="classserver_1_1_client_service_a05d13ec76832219c462109ca17fc8cfc_cgraph" id="classserver_1_1_client_service_a05d13ec76832219c462109ca17fc8cfc_cgraph">
<area shape="rect" id="node2" href="classtools_1_1_game_state.html#af3aabc18f527e416307e73bd3abfbcf9" title="tools.GameState.countPlayers" alt="" coords="211,5,411,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>server/<a class="el" href="_client_service_8java_source.html">ClientService.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceserver.html">server</a></li><li class="navelem"><a class="el" href="classserver_1_1_client_service.html">ClientService</a></li>
    <li class="footer">Generated on Sun Nov 16 2014 20:20:35 for Badugi by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
